package com.developer.platform.infrastructure.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.developer.platform.domain.Menu;
import java.util.List;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

/**
 * @author ：qiaoliang
 * @date ：2020-10-16
 */
@Component
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     *  通过用户ID获取用户可访问资源
     *
     * @author ：qiaoliang
     * @param userId :
     * @return java.util.List<java.lang.String>
     * @date 2020-10-16 16:26
     */
    List<Menu> findByUserId(@Param("userId") long userId);

}
